package Kalah;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

public class KalahGamePanel extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = -669022994565918201L;
	private static KalahGamePanel m_ref;
	private JLabel m_topLabel;
	private JLabel m_botLabel;
	private KalahGamePanel(){
		setLayout(new BorderLayout());
		JPanel topLabelPanel = new JPanel();
		JPanel botLabelPanel = new JPanel();
		m_topLabel = new JLabel("Hello I'm Top player");
		m_botLabel = new JLabel("Hello I'm Bot player");
		m_topLabel.setForeground(Color.white);
		m_botLabel.setForeground(Color.white);
		topLabelPanel.add(m_topLabel);
		botLabelPanel.add(m_botLabel);
		topLabelPanel.setBackground(Color.black);
		botLabelPanel.setBackground(Color.black);
		
		add(topLabelPanel, BorderLayout.NORTH);
		add(KalahCenterPanel.getInstance(), BorderLayout.CENTER);
		add(botLabelPanel, BorderLayout.SOUTH);
	}
	public static KalahGamePanel getInstance(){
		if(m_ref == null)
			m_ref = new KalahGamePanel();
		return m_ref;
	}
	

	
}
